<template lang="pug">
  .clearfix
    Modal(
      width="320"
      v-model="isShowErrorTemplateModal"
      class-name="vertical-center-modal"
      footer-hide
    )
      .clearfix
        .text-center.mt-20.mb-20.font-14 {{modalTitle}}
        .text-center.pb-10
          Button.ml-10.mr-10(@click="cancel()") 取消
          Button.ml-10.mr-10(type="primary" @click="ok()") 下载错误模板
</template>

<script>
export default {
  name: '',

  props: {
    modalTitle: {
      type: String,
      default: ''
    }
  },

  data () {
    return {
      isShowErrorTemplateModal: false,
      downloadUrl: ''
    }
  },

  watch: {
  },

  mounted () {
  },

  methods: {
    ok () {
      window.open(this.downloadUrl, '_blank')
      this.isShowErrorTemplateModal = false
    },

    cancel () {
      this.isShowErrorTemplateModal = false
    }
  }
}
</script>

<style lang="less" scope>
.ApplyInvoice{

}
</style>
